package engine;

import java.util.ArrayList;

import com.google.gson.annotations.Expose;
import com.sampullara.poker.*;

public class Hand{
	@Expose
	public ArrayList<Card> cards;
	private HandRank rank;
	public Hand(){
		this.cards = new ArrayList<Card>(2);
		this.rank = null;
	}
	
	public HandRank getRank(){
		return this.rank;
	}
	
	public void setRank(HandRank rank){
		this.rank = rank;
	}
	
	public String getCards(){
		String tmp = "";
		for (int i = 0; i < 2; i++) {
			tmp += "" + this.cards.get(i).getRank().charAt(0) + this.cards.get(i).getSuit().toLowerCase().charAt(0) + " ";
		}
		return tmp;
	}
}